Skip to content

Instantly share code, notes, and snippets.

@snatchev
Created June 2, 2009 17:52
Show Gist options
  • Save snatchev/122392 to your computer and use it in GitHub Desktop.
Save snatchev/122392 to your computer and use it in GitHub Desktop.
snatchev's dot vim configs
" CtrlP OS-X Menu remapping
if has("gui_macvim")
set guioptions=egmrt
macmenu &File.New\ Tab key=<D-S-t>
set guifont=Menlo\ for\ Powerline:h16
endif
map <D-Down> <C-W><Down>
map <D-Up> <C-W><Up>
map <D-Left> <C-W><Left>
map <D-Right> <C-W><Right>
map <D-/> <plug>NERDCommenterToggle
map <D-t> :tabnew<CR>
call pathogen#infect()
filetype plugin indent on
colorscheme solarized
let g:solarized_termcolors=256
if has('gui_running')
set background=dark
else
set background=light
endif
let g:Powerline_symbols = 'fancy'
if has("autocmd")
" In Makefiles, use real tabs, not tabs expanded to spaces
au FileType make set noexpandtab
au BufNewFile,BufRead *.json set ft=javascript
" Remember last location in file, but not for commit messages.
" see :help last-position-jump
au BufReadPost * if &filetype !~ '^git\c' && line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif
endif
map <Leader>n <plug>NERDTreeTabsToggle<CR>
map <C-t> :CtrlP<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment