Skip to content

Instantly share code, notes, and snippets.

@johanek
Created November 24, 2017 20:32
Show Gist options
  • Save johanek/bc78ea20a9a5c637657674b52afb249d to your computer and use it in GitHub Desktop.
Save johanek/bc78ea20a9a5c637657674b52afb249d to your computer and use it in GitHub Desktop.
set modeline
set modelines=1
set autoindent
set softtabstop=2
set tabstop=2
set shiftwidth=2
set paste
set expandtab
set showmatch
set ruler
syntax enable
nmap <C-N> <C-N> :set invnumber <CR>
set laststatus=2
set number
"utility prefixes - backslash <whatever>
:nmap \l :setlocal number!<CR>
:nmap \o :set paste!<CR>
"move rowsize, rather than linewise
:nmap j gj
:nmap k gk
"emacs style movement
:cnoremap <C-a> <Home>
:cnoremap <C-b> <Left>
:cnoremap <C-f> <Right>
:cnoremap <C-d> <Delete>
:cnoremap <M-b> <S-Left>
:cnoremap <M-f> <S-Right>
:cnoremap <M-d> <S-right><Delete>
:cnoremap <Esc>b <S-Left>
:cnoremap <Esc>f <S-Right>
:cnoremap <Esc>d <S-right><Delete>
:cnoremap <C-g> <C-c>
"searching
:set incsearch
:set ignorecase
:set smartcase
:set hlsearch
:nmap \q :nohlsearch<CR>
"whitespace
:set list
:set listchars=tab:>-,trail:~,extends:>,precedes:<
"powerline
set rtp+=/usr/local/lib/python2.7/site-packages//powerline/bindings/vim
"pathogen module managemnt
execute pathogen#infect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment