Created
September 27, 2011 08:31
-
-
Save grahamlyons/1244613 to your computer and use it in GitHub Desktop.
.vimrc and .gvimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" .vimrc | |
set background=dark | |
set number | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
syntax on | |
filetype on | |
filetype plugin on | |
au BufNewFile,BufRead *.spv set filetype=php | |
au BufNewFile,BufRead *.vcl set filetype=c | |
set hlsearch | |
" Press space bar to toggle highlighting on/off, and show current value. | |
:noremap <silent> <Space> :set hlsearch! hlsearch?<CR> | |
nnoremap <C-j> :m+<CR>== | |
nnoremap <C-k> :m-2<CR>== | |
inoremap <C-j> <Esc>:m+<CR>==gi | |
inoremap <C-k> <Esc>:m-2<CR>==gi | |
vnoremap <C-j> :m'>+<CR>gv=gv | |
vnoremap <C-k> :m-2<CR>gv=gv | |
nmap <D-c> <plug>NERDCommenterToggle | |
imap <D-c> <plug>NERDCommenterToggle | |
vmap <D-c> <plug>NERDCommenterToggle | |
nmap <Tab> <C-w>w | |
nmap <D-+> <C-w>+ | |
nmap <D-_> <C-w>- | |
nmap <D->> <C-w>> | |
nmap <D-<> <C-w>< | |
" .gvimrc | |
cd workspace | |
colorscheme solarized | |
if has("gui_macvim") | |
set guioptions=agimrLte | |
macmenu &File.Open\.\.\. key=<nop> | |
noremap <D-o> :CommandT<CR> | |
noremap <D-r> :e %:h/ | |
macmenu &File.New\ Window key=<nop> | |
noremap <D-n> :NERDTreeToggle<CR> | |
macmenu &File.Open\ Tab\.\.\. key=<nop> | |
noremap <D-T> :TlistToggle<CR> | |
endif |
Thanks, that looks useful. That Python function is in there just because I wanted to play around with some Python in Vim. I should remove it really because it's pretty yuck.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a option to
HashComment
is nerdcommenter