Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :set nowrap ts=4 sw=4 smartindent expandtab
- :set magic "very magic"
- :syntax on
- filetype plugin indent on
- let mapleader = ","
- " make Y work as C and D do
- nmap Y y$
- " make j and k play well on wrapped lines
- nmap j gj
- nmap k gk
- " simplify tab and buffer switching
- nmap <C-p> <Esc>:tabp
- nmap <C-n> <Esc>:tabn
- map <left> :bp
- map <right> :bn
- " Python comment/uncomment
- map <Leader>3 :s/^/#/:noh
- map <Leader># :s/^#//:noh
- " highlight searches
- set hlsearch
- " simplify interactions with .vimrc
- nmap <Leader>v :vs $MYVIMRC
- nmap <Leader>V :source $MYVIMRC
- set foldmethod=marker
- :hi Folded term=standout ctermfg=4 ctermbg=8
- " sets up/maps command to tell what group in the syntax file char under cursor belongs to
- autocmd FuncUndefined * exe 'runtime autoload/'.expand('<afile>').'.vim'
- map -a :call SyntaxAttr()<CR>
- " allow up/down arrows to accordion through vertical splits (like Qt's QToolBox)
- set winminheight=0
- map <up> <c-w>k<c-w>_
- map <down> <c-w>j<c-w>_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement