Commit f4c08e2
Changed files (1)
vimrc
@@ -12,7 +12,6 @@ syntax enable " Turn on syntax highlighting allowing local overrides
set encoding=utf-8 " Set default encoding to UTF-8
set modelines=0 " do not check file for set commands
set scrolloff=3 " always show 3 lines above and below cursor
-set autoindent " copy indent from current line when starting a new one
set gdefault " use global substitution by default
set showmatch " show matching bracket.
set showcmd " show last command in last line of screen.
@@ -20,11 +19,19 @@ set showmode " display mode in last line (e.g VISUAL)
set hidden " hide buffers instead of closing them.
set cursorline " highlight current line
set ttyfast " fast terminal connection
-set visualbell " use visual bell instead of beeping
+set novisualbell " turn off visual bell
+set noerrorbells " turn off error bell
set exrc " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files
set nobackup " do not make backup files
set nowritebackup " do not write a backup
+set mouse=a " "a" for GUI, MS-DOS and Win32
+set splitright " open new splits to the right
+set splitbelow " open new splits below
+set autoread " auto load changed files
+set title " the title of the window will be set to the value of titlestring
+set clipboard=unnamed " use OS clipboard
+set tags=./.git/tags,./tmp/tags,./tags,tags,._tags
if $TERM == "xterm-256color" || $TERM == "screen-256color" || $COLORTERM == "gnome-terminal"
set t_Co=256
endif
@@ -35,19 +42,22 @@ endif
set nowrap " don't wrap lines
set tabstop=2 " a tab is two spaces
+set softtabstop=2 " number of spaces that a <Tab> counts for while performing editing
set shiftwidth=2 " an autoindent (with <<) is two spaces
set expandtab " use spaces, not tabs
set list " Show invisible characters
set backspace=indent,eol,start " backspace through everything in insert mode
+set autoindent " copy indent from current line when starting a new one
" List chars
set listchars="" " Reset the listchars
set listchars=tab:\ \ " a tab should display as " ", trailing whitespace as "."
-set listchars+=trail:. " show trailing spaces as dots
+set listchars+=trail:. " show trailing spaces as copyright
set listchars+=extends:> " The character to show in the last column when wrap is
" off and the line continues beyond the right of the screen
set listchars+=precedes:< " The character to show in the last column when wrap is
" off and the line continues beyond the left of the screen
+set colorcolumn=80,100 " show color columns at 80 and 100
" }}}}
"" Searching {{{{
@@ -57,13 +67,17 @@ set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
+set showmatch " briefly jump to the matching bracket.
+nnoremap / /\v
+vnoremap / /\v
+
" }}}}
"" Wild settings {{{{
""
set wildmenu
-set wildmode=list:longest
+set wildmode=longest,list:longest
" Disable output and VCS files
set wildignore+=*.o,*.out,*.obj,.git,*.rbc,*.rbo,*.class,.svn,*.gem
@@ -88,10 +102,10 @@ set wildignore+=*/tmp/*,*.so,*/coverage/*
""
" where to put backup files.
-set backupdir^=/tmp//
+set backupdir=/tmp//
" where to put swap files.
-set directory^=/tmp//
+set directory=/tmp//
" }}}}
"" Helpers {{{{
@@ -269,6 +283,15 @@ nmap <localleader>/ <leader>c<space>
vmap <localleader>/ <leader>c<space>
" BufferGator
"nnoremap <localleader>b :BuffergatorOpen<cr>
+" redraw the screen
+nnoremap <leader>f :redraw!<cr>
+
+" git fugitive
+nnoremap <leader>gs :Gstatus<cr>
+nnoremap <leader>gb :Gblame<cr>
+
+" ctags
+nnoremap <leader>T :!ctags -f tags -R<cr>
" }}}}