Skip to content

Instantly share code, notes, and snippets.

@alexwirz
Created April 23, 2018 11:54
Show Gist options
  • Save alexwirz/8648a7b2b0721db1cf8d060f7bf0adb3 to your computer and use it in GitHub Desktop.
Save alexwirz/8648a7b2b0721db1cf8d060f7bf0adb3 to your computer and use it in GitHub Desktop.
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
set number
set ai "auto indent
set si "smart indent
set wrap "wrap lines
set ignorecase
set smartcase
set nobackup
set nowb
set noswapfile
""""""""""""""""""""""""""""""
" => Visual mode related
""""""""""""""""""""""""""""""
" Visual mode pressing * or # searches for the current selection
" Super useful! From an idea by Michael Naumann
vnoremap <silent> * :<C-u>call VisualSelection('', '')<CR>/<C-R>=@/<CR><CR>
vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>
""""""""""""""""""""""""""""""
" => Status line
""""""""""""""""""""""""""""""
" Always show the status line
set laststatus=2
" Format the status line
set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment