Skip to content

Instantly share code, notes, and snippets.

@zonyitoo
Forked from humiaozuzu/.vimrc
Created November 29, 2012 11:30
Show Gist options
  • Save zonyitoo/4168375 to your computer and use it in GitHub Desktop.
Save zonyitoo/4168375 to your computer and use it in GitHub Desktop.
vimrc for servers
syntax enable
filetype plugin indent on
set bg=dark
" Stop backup files
set nobackup
set nowritebackup
set noswapfile
" better search
set hlsearch
set incsearch
set ignorecase
set smartcase
set history=1000
set nocompatible
set number " show linenumber
set confirm " prompt when existing from an unsaved file
set showcmd " Show (partial) command in status line
set backspace=indent,eol,start " More powerful backspacing
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif
" eggcache vim
:command W w
:command WQ wq
:command Wq wq
:command Q q
:command Qa qa
:command QA qa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment