Skip to content

Instantly share code, notes, and snippets.

@juliend2
Created January 15, 2011 19:06
Show Gist options
  • Save juliend2/781157 to your computer and use it in GitHub Desktop.
Save juliend2/781157 to your computer and use it in GitHub Desktop.
mon vimrc
if has("terminfo")
set t_Co=16
set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
else
set t_Co=16
set t_Sf=[3%dm
set t_Sb=[4%dm
endif
" BASIC STUFF
set nocompatible " We're running Vim, not Vi!
syntax on
set ignorecase " Ignore case when searching
filetype indent on " Enable filetype-specific indenting
set guifont=Monaco:h14
set expandtab
" set textwidth=79
set ts=2 " A tab = 2 spaces
let &shiftwidth=&ts
let softtabstop=&ts
set scrolloff=4 " Scroll offset
set laststatus=2 " Always show the status line
set title " Display filename in window title
set showmatch " Show matching parentheses
set noautoindent " Code auto-indent
set nosmartindent " Smart code auto-indent
set showtabline=2 " Always display tabs
set hlsearch " Highlight matching search result
set wildmenu
set wildmode=full
set nowrap
set cindent
set number
" ENCODING
set encoding=utf-8
"set fileencoding=utf-8
" COLORS
colorscheme reliable
set t_Co=256 " Activate 256 colors mode (to use in terminal mode)
" SYNTAX HIGHLIGHTING
au BufRead,BufNewFile *.sass set filetype=scss
au BufRead,BufNewFile *.scss set filetype=scss
" BUFFERS
au BufEnter * lcd %:p:h " Change the working path each time we switch buffers
nmap <C-B> :ls<CR>
" HIDE TOOLBAR IN MACVIM
set guioptions-=T
" NERDTREE SETTINGS
nmap <C-D> :NERDTreeToggle<CR>
map f :NERDTreeFind
let NERDTreeShowHidden=1
let NERDTreeChDirMode=2
let NERDTreeQuitOnOpen=1
let NERDTreeIgnore = ['\~$', '^\._', '^\.git$', '\.swp$','^\.DS_Store$','^\.rvmrc$']
""FOLDING SETTINGS
"set foldmethod=indent "fold based on indent
"set foldnestmax=2 "deepest fold is 2 levels
"set nofoldenable "dont fold by default
"set foldlevel=1 "this is just what i use
" MACROS
" insert console.log();
" let @l='oconsole.log();hi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment