Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- set ls=2
- set tabstop=2
- set shiftwidth=2
- set softtabstop=2
- set expandtab
- set hlsearch
- set incsearch
- set number
- set autoindent
- set smartindent
- "fix for not indenting # comments
- set cindent
- "set cinkeys=0{,0},!^F,o,O,e " default is: 0{,0},0),:,0#,!^F,o,O,e
- "set fdm=syntax
- "search up directory tree for .tags file
- set tags=./tags;/
- colorscheme elflord
- set background=dark
- set t_Co=256
- syntax on
- "call indent_guides#enable()
- if version >= 700
- set runtimepath+=$HOME/.vim/plugin_700
- endif
- "hi IndentGuidesOdd ctermbg=black
- "hi IndentGuidesEven ctermbg=darkgrey
- "show the name of the current function
- "fun! ShowFuncName()
- " let lnum = line(".")
- " let col = col(".")
- " echohl ModeMsg
- " echo getline(search("^[^ \t#/]\\{2}.*[^:]\s*$", 'bW'))
- " echohl None
- " call search("\\%" . lnum . "l" . "\\%" . col . "c")
- "endfun
- "map ,f :call ShowFuncName() <CR>
- "augroup vimrc
- " au BufReadPre * setlocal foldmethod=indent
- " au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
- "augroup END
- "inoremap # X^H#
- " resize split to fit file
- fun! Fit()
- let len=line("$") " line number of last line
- :0
- execute 'resize ' . len
- endfun
- map <C-W>* :call Fit() <CR>
- execute pathogen#infect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement