Permalink
Browse files

More tweaks for usability.

  • Loading branch information...
1 parent 26ebde0 commit ec4ea055dd69528e138d992da02dbbf3137ee7fe @mdkent committed Feb 8, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 vimrc
View
12 vimrc
@@ -84,6 +84,7 @@ filetype plugin indent on " Automatically detect file types. (must turn on afte
" Set leader to ,
" Note: This line MUST come before any <leader> mappings
let mapleader=","
+map <leader> echo"moo"<CR>
" ----------------------------------------
" Platform Specific Configuration
@@ -156,7 +157,7 @@ set history=768 " Number of things to remember in history.
set cf " Enable error files & error jumping.
set clipboard+=unnamed " Yanks go on clipboard instead.
set autowrite " Writes on make/shell commands
-set timeoutlen=350 " Time to wait for a command (after leader for example)
+set timeoutlen=1000 " Time to wait for a command (after leader for example)
set foldlevelstart=99 " Remove folds
set formatoptions=crql
@@ -200,6 +201,8 @@ set t_vb=
set mousehide " Hide mouse after chars typed
set mouse=a " Mouse in all modes
+" Remember - in OSX hold down alt to copy out of iTerm
+
" Better complete options to speed it up
set complete=.,w,b,u,U
@@ -363,6 +366,7 @@ nnoremap <leader>nf :NERDTreeFind<CR>
let NERDTreeShowBookmarks=1
let NERDTreeChDirMode=2 " Change the NERDTree directory to the root node
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
+autocmd vimenter * if !argc() | NERDTree | endif
" ---------------
" Indent Guides
@@ -590,3 +594,9 @@ endfunction
command! QuickSpellingFix call QuickSpellingFix()
nmap <silent> <leader>z :QuickSpellingFix<CR>
+
+set relativenumber
+set colorcolumn=80
+autocmd BufRead,BufNewFile *.txt set filetype=textfile
+autocmd FileType textfile set textwidth=80
+autocmd FileType textfile set formatoptions+=t

0 comments on commit ec4ea05

Please sign in to comment.