/vim-and-cp

Some helpful bits and pieces for your vimrc

Primary LanguageVim Script

vim-and-cp

Some helpful bits and pieces for your vimrc

compiling

:CompileAndRun

Using a file as input, for example input.txt

:CompileAndRunWithFile "input.txt"

These commands can be mapped to keys of your choice, for example:

autocmd FileType cpp nnoremap <leader>fw :CompileAndRun<CR>

options

Choose between 'vertical' and 'horizontal' for how the terminal window is split (default is vertical)

let g:split_term_style = 'horizontal'

Add a custom command to resize the terminal window to your preference (default is to split the screen equally)

let g:split_term_resize_cmd = 'resize 6'