mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Add JavaScript and OCaml specific Vim config
This commit is contained in:
parent
8826f4a069
commit
77b615b1d1
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ bookmarks
|
|||||||
|
|
||||||
*.log
|
*.log
|
||||||
.xournal/recent-files
|
.xournal/recent-files
|
||||||
|
.vim/bundle
|
||||||
|
1
.vim/ftplugin/javascript/config.vim
Normal file
1
.vim/ftplugin/javascript/config.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
set tabstop=2
|
1
.vim/ftplugin/ocaml/config.vim
Normal file
1
.vim/ftplugin/ocaml/config.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
set tabstop=2
|
3
.vim/ftplugin/ocaml/keybinds.vim
Normal file
3
.vim/ftplugin/ocaml/keybinds.vim
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
map <c-p> <esc>:MerlinDocument<enter>
|
||||||
|
map <c-b> <esc>:MerlinLocate<enter>
|
||||||
|
map <c-.> <esc>:MerlinTypeOf<enter>
|
5
.vimrc
5
.vimrc
@ -2,8 +2,8 @@ set nocompatible " be iMproved, required
|
|||||||
|
|
||||||
syntax enable
|
syntax enable
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=0
|
||||||
set softtabstop=4
|
set softtabstop=-1
|
||||||
set expandtab
|
set expandtab
|
||||||
set number
|
set number
|
||||||
set autoindent
|
set autoindent
|
||||||
@ -11,6 +11,7 @@ set laststatus=2
|
|||||||
set mouse=a
|
set mouse=a
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set background=dark
|
set background=dark
|
||||||
|
set directory=$HOME/.vim/swapfiles//
|
||||||
|
|
||||||
" GVim settings
|
" GVim settings
|
||||||
set guifont=Sauce\ Code\ Pro\ 10.5
|
set guifont=Sauce\ Code\ Pro\ 10.5
|
||||||
|
Loading…
Reference in New Issue
Block a user