0% found this document useful (0 votes)
43 views

Python Methods

1) The document lists common Python list methods like listname.index(item) to return an item's index, listname.append(item) to add an item to the end of the list, and listname.sort() to sort the list alphabetically or numerically. 2) The second part of the document contains Vim configuration settings that install and configure plugins like NERDTree, airline, tagbar using the NeoBundle plugin manager. 3) The settings customize the Vim UI and keyboard shortcuts, and define a colorscheme and font.

Uploaded by

Mihir Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Python Methods

1) The document lists common Python list methods like listname.index(item) to return an item's index, listname.append(item) to add an item to the end of the list, and listname.sort() to sort the list alphabetically or numerically. 2) The second part of the document contains Vim configuration settings that install and configure plugins like NERDTree, airline, tagbar using the NeoBundle plugin manager. 3) The settings customize the Vim UI and keyboard shortcuts, and define a colorscheme and font.

Uploaded by

Mihir Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

List methods:

1) listname.index(item) returns index of that item


2) listname.append(item) appends that element to the end of that list
3) listname.append(insertion_index, item) add that item at the specific insertion index
4) listname.remove(item) removes that item from wherever it is in the list
5) listname.sort() sorts the list (alphabetically or numerically depending on the data contained) (if both are contained a
"TypeError" is generated)
6) listname.sort(reverse=True) to reverse sort the list
VIM config:
" Note: Skip initialization for vim-tiny or vim-small.
if !1 | finish | endif
if has('vim_starting')
if &compatible
set nocompatible
endif

" Be iMproved

" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'ervandew/supertab'
NeoBundle 'scrooloose/nerdcommenter'
NeoBundle 'nathanaelkane/vim-indent-guides'
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'bling/vim-airline'
NeoBundle 'Raimondi/delimitMate'
NeoBundle 'tomasr/molokai'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'jistr/vim-nerdtree-tabs'

file:///C|/Users/mihir/Desktop/pythonmethods.txt[1/5/16 12:19:17 PM]

call neobundle#end()
" Basic Settings
syntax on
set background=dark
colorscheme molokai
set guifont=Meslo\ LG\ S\ for\ Powerline:h14
set number
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set autoindent
set showmatch
set hlsearch
set incsearch
set ignorecase
set smartcase
set ruler
set mouse=a
inoremap jj <ESC>
noremap <F8> :TagbarToggle<CR>
noremap <F7> :NERDTreeTabsToggle<CR>
"Airline Settings
set laststatus=2
let g:airline_powerline_fonts = 1
"Tagbar Settings
let g:tagbar_type_vhdl = {
\ 'ctagstype': 'vhdl',
\ 'kinds' : [
\'d:prototypes',
\'b:package bodies',
\'e:entities',
\'a:architectures',
\'t:types',
\'p:processes',
\'f:functions',
\'r:procedures',
\'c:constants',
\'T:subtypes',
\'r:records',
\'C:components',
\'P:packages',
\'l:locals'
\]
\}

file:///C|/Users/mihir/Desktop/pythonmethods.txt[1/5/16 12:19:17 PM]

You might also like