Configuration is made mainly for:
- Front-End Development (with Javascript, Typescript and ReasonML)
- Rust Development
Windows uses ProggyCleatTT NF, it's only font I found work with Powerline and vim so far.
- Installation command for:
- move vimrc file to main directory
- create .vim folder
- install vim-plug
sh ./install.sh
-
Set System Variables look here
-
Plugins Installation
vim -c PlugInstall
- Update command for
- backup old vimrc file
- move vimrc file to $HOME directory as .vimrc
sh ./update.sh
- Install new plugins (if there are some new)
vim -c PlugInstall
- Update plugins
vim -c PlugUpdate
- Install
Rust
withrustup
- Install nightly build
rustup toolchain add nightly
- Install racer:
cargo +nightly install racer
- Add RUST_SRC_PATH variable
export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src
- Vim-Plug should run installation with racer completer if not:
- Run YCM installation with Rust parameter manually
./install.py --racer-completer
- Add RACER_SRC_PATH
export RACER_SRC_PATH=$HOME/.cargo/bin/racer
- Add rust-src
rustup component add rust-src
- Add rustfmt
rustup component add rustfmt
- For Rust errors and warnings
vim
needsALE
plugin - For completion details as function interface use
vim-racer
plugin with in insert mode.
- Get Language server:
- Instruction website
- Download website
- Place reason-language-server.exe in your dedicated directory (yes it's .exe even for macos and linux)
- Set $REASONSERVER system variable with path to server
- Get Client (installed via Vim-plug)
- $REASONSERVER - path to
reason-language-server
file - $NERDTREE_WIDTH -
NERDTree
width - $RUST_SRC_PATH - path to
Rust
lib - $RACER_SRC_PATH - path to
Racer
executable
<leader>
= "\"<C-(some key)>
= C stands for ctrl
- print system variables
:echo $
- press:
ctrl + d
- switch to next NERDTree tab
ctrl + l
- switch to previous NERDTree tab
ctrl + h
- toggle NERDTree
ctrl + n
- focus NERDTree (unfortunately it's resizing split windows)
ctrl + f
- split window vertically
ctrl + a
- comment text selected in visual mode
<leader>cc
- comment current or selected line text with single comment
<leader>c<space>
- switch surroundings
cs<from><to>
- for example
cs'"
= from ' to "
- delete surroundings
ds<from>
- surround text under cursor
ysiw<to>
- opening brackets will add spacing
- closing brackets won't add spacing
- surround text selected in visual mode
S<to>
- run prettier
<leader>p
Update Coc:
:CocUpdate