Skip to content

Instantly share code, notes, and snippets.

@cypres
Created February 11, 2014 08:54
Show Gist options
  • Save cypres/8931422 to your computer and use it in GitHub Desktop.
Save cypres/8931422 to your computer and use it in GitHub Desktop.
vimrc for severs
" everything needs to be unicode. EVERYTHING
set encoding=utf8
" always join with just one space, even between sentences
set nojoinspaces
" don't move the cursor to the start of the line when changing buffers
set nostartofline
" Yeah, we like
syntax enable
" No folding
set nofoldenable
" lines, cols in status line
set ruler
" current mode in status line
set showmode
" set linenumber
set nu
" I want my splits done on the proper side
set splitbelow
set splitright
" highlight all matches, we'll see if this works with a different hilight
set hlsearch
" clear search highlighting with space
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
"50 milliseconds for escape timeout instead of 1000
set ttimeoutlen=50
"no bells whatsoever
set vb t_vb=
" Set tabstop to tell vim how many columns a tab counts for
set tabstop=2
" set to the same as tabstop (see #4 in :help tabstop)
set shiftwidth=2
" if it looks like a tab, we can delete it like a tab
set softtabstop=2
" no tabs! spaces only..
set expandtab
" < and > will hit indentation levels instead of always -4/+4
set shiftround
" new line has indentation equal to previous line
set autoindent
" braces affect autoindentation
set smartindent
" mouse for those hard to reach places
set mouse=a
" Use ctrl-[hjkl] to select the active split!
nmap <silent> <c-k> :wincmd k<CR>
nmap <silent> <c-j> :wincmd j<CR>
nmap <silent> <c-h> :wincmd h<CR>
nmap <silent> <c-l> :wincmd l<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment