Last active
September 26, 2015 22:48
-
-
Save gertcuykens/1171609 to your computer and use it in GitHub Desktop.
~/.vimrc
~/.local/share/applications/defaults.list
~/.local/share/applications/mimeapps.list
~/.local/share/applications/vim.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set ic | |
set ts=4 | |
set sts=4 | |
set sw=4 | |
set et | |
set nowrap | |
set hlsearch | |
set nobackup | |
set nowritebackup | |
set uc=0 | |
set encoding=utf8 | |
set fileencoding=utf8 | |
set ff=unix | |
set backspace=indent,eol,start | |
set nocp | |
set t_Co=256 | |
set mouse=a | |
set pastetoggle=<F9> | |
set conceallevel=2 | |
set concealcursor=i | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
"set foldmethod=syntax | |
"set foldlevelstart=1 | |
"set guioptions-=T | |
"set guifont=lucida\ grande\ 11 | |
"set guifont=lucida_console:h11 | |
let g:mapleader="\\" | |
let g:neocomplcache_enable_at_startup=1 | |
let g:neocomplcache_enable_smart_case=1 | |
let g:neocomplcache_enable_camel_case_completion=1 | |
let g:neocomplcache_enable_underbar_completion=1 | |
let g:neocomplcache_min_syntax_length=3 | |
let g:neocomplcache_lock_buffer_name_pattern='\*ku\*' | |
let g:necoghc_enable_detailed_browse=1 | |
let g:syntastic_loc_list_height=3 | |
let g:syntastic_haskell_checkers=['ghc_mod'] | |
"let g:haddock_browser="/usr/bin/firefox" | |
"hi Normal guifg=#000000 guibg=#DDDDDD gui=none | |
"hi Visual guifg=#000000 guibg=#FFFFFF gui=none | |
command W execute ':silent w !sudo tee % > /dev/null' | edit! | |
command Ghci execute ':w' | !clear & ghci % -isrc | |
"command DiffOrig2 vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis | |
autocmd BufWrite * %s/\s\+$//e | |
"autocmd BufEnter *.hs compiler ghc | |
"autocmd BufNewFile,BufRead *.txt,*.htm set spell spelllang=en_us | |
autocmd FileType haskell inoremap <F1> <Esc>:Ghci<CR> | |
autocmd FileType haskell nnoremap <F1> :Ghci<CR> | |
autocmd FileType haskell inoremap <buffer> <F2> <Esc>:GhcModType<CR> | |
autocmd FileType haskell nnoremap <buffer> <F2> :GhcModType<CR> | |
autocmd FileType haskell inoremap <buffer> <F3> <Esc>:GhcModInfo<CR> | |
autocmd FileType haskell nnoremap <buffer> <F3> :GhcModInfo<CR> | |
autocmd FileType haskell inoremap <buffer> <silent> <F4> <Esc>:GhcModTypeClear<CR> | |
autocmd FileType haskell nnoremap <buffer> <silent> <F4> :GhcModTypeClear<CR> | |
inoremap <leader>\ <Esc> | |
nnoremap <leader>\ i | |
inoremap <leader><Cr> <Esc>: | |
nnoremap <leader><Cr> : | |
"nnoremap <C-k> <Plug>(neocomplcache_start_unite_complete) | |
"nnoremap <C-q> <Plug>(neocomplcache_start_unite_quick_match) | |
snoremap <C-k> <Plug>(neocomplcache_snippets_expand) | |
inoremap <C-k> <Plug>(neocomplcache_snippets_expand) | |
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
inoremap <expr> <Left> neocomplcache#close_popup() . "\<Left>" | |
inoremap <expr> <Right> neocomplcache#close_popup() . "\<Right>" | |
inoremap <expr> <Up> neocomplcache#close_popup() . "\<Up>" | |
inoremap <expr> <Down> neocomplcache#close_popup() . "\<Down>" | |
inoremap <expr> <Cr> neocomplcache#close_popup() . "\<Cr>" | |
inoremap <expr> <Bs> neocomplcache#close_popup() . "\<Bs>" | |
inoremap <silent> <C-h> <Esc>:UniteWithCursorWord haddock<CR> | |
nnoremap <silent> <C-h> :UniteWithCursorWord haddock<CR> | |
"nnoremap <C-h> :Unite -start-insert help<CR> | |
execute neobundle#rc(expand('~/.vim/bundle/')) | |
syntax on | |
filetype plugin indent on | |
colorscheme desert | |
NeoBundle 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/neocomplcache' | |
NeoBundle 'Shougo/neosnippet' | |
NeoBundle 'Shougo/vimproc', { | |
\ 'build' : { | |
\ 'windows' : 'make -f make_mingw32.mak', | |
\ 'cygwin' : 'make -f make_cygwin.mak', | |
\ 'mac' : 'make -f make_mac.mak', | |
\ 'unix' : 'make -f make_unix.mak', | |
\ }, | |
\} | |
NeoBundle 'Shougo/unite.vim' | |
execute unite#custom_default_action('haddock', 'browse_remote') | |
NeoBundle 'tpope/vim-fugitive' | |
NeoBundle 'eagletmt/ghcmod-vim' | |
NeoBundle 'eagletmt/unite-haddock' | |
NeoBundle 'bitc/lushtags' | |
NeoBundle 'ujihisa/neco-ghc' | |
NeoBundle 'scrooloose/syntastic' | |
NeoBundle 'majutsushi/tagbar' | |
NeoBundle 'Twinside/vim-haskellConceal' | |
NeoBundle 'Twinside/vim-haskellFold' | |
NeoBundle 'nvie/vim-togglemouse' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libncurses5-dev python-dev lua5.2-dev | |
./configure --disable-gui --without-x --prefix=/home/gert/.local --enable-pythoninterp --enable-luainterp | |
sudo update-alternatives --install /usr/bin/editor editor ~/.local/bin/vim 1 | |
sudo update-alternatives --config editor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Default Applications] | |
text/plain=vim.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Added Associations] | |
text/plain=vim.desktop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Vim | |
Comment=Text Editor | |
Exec=vim %F | |
Icon=vim | |
Terminal=true | |
Type=Application | |
Categories=TextEditor; | |
MimeType=text/plain; | |
#sudo gtk-update-icon-cache /usr/share/icons/hicolor | |
[Desktop Entry] | |
#Encoding=UTF-8 | |
Name=Vim Text Editor (Console) | |
Comment=Edit text files in a console using Vim | |
Exec=vim %u | |
Terminal=true | |
Type=Application | |
Icon=vim.svg | |
#Categories=Application;Utility;TextEditor; | |
#StartupNotify=true | |
#MimeType=text/plain; | |
#NoDisplay=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment