Last active
August 29, 2015 14:23
-
-
Save jizusun/f30a40b9b8d875ca27cb to your computer and use it in GitHub Desktop.
My vimrc configuration
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
syntax enable | |
set background=dark | |
colorscheme solarized | |
set hlsearch | |
set nocompatible | |
set title | |
set number " Show line numbers | |
set history=1000 " Default is 20, I'd rather set this to ∞ | |
set nofoldenable " Don't fold shit | |
set laststatus=2 " Always show file status line | |
set encoding=utf-8 | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set autoindent | |
set smarttab | |
execute pathogen#infect() | |
set t_Co=256 | |
syntax on | |
filetype plugin indent on | |
filetype plugin on | |
" Enter newlines without entering insert mode | |
nmap <CR> o<Esc>k | |
" Tab Navigation | |
nnoremap th :tabfirst<CR> | |
nnoremap tj :tabnext<CR> | |
nnoremap tk :tabprev<CR> | |
nnoremap tl :tablast<CR> | |
nnoremap tn :tabnew<CR> | |
nnoremap gb :Gbrowse<CR> | |
map fj :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR> | |
map cn :cn<CR> | |
" Custom Plugin Mappings | |
nnoremap ff :CtrlP<CR> | |
nnoremap -- :GundoToggle<CR> | |
autocmd BufRead *.html map <F5> :exe ':silent !firefox % '<CR>:redr!<CR> | |
nnoremap <leader>y :let g:ycm_auto_trigger=0<CR> " turn off YCM | |
nnoremap <leader>Y :let g:ycm_auto_trigger=1<CR> " turn on YCM | |
" force .md to be recognized as a markdown file | |
autocmd BufNewFile,BufReadPost *.md set filetype=markdown | |
autocmd CompleteDone * pclose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment