![]() I now use the tabbar plugin script#1338 to simply ALT-1, ALT-2, etc to switch between buffers. To resize vertical windows quickly with ALT-SHIFT-:Īlways handy to scroll between open windows. To quickly resize windows with a vertical split: ![]() No keypressing - focus-follows-mouse for gvim, in _gvimrc This allows all window commands in insert mode and i'm not accidentally deleting words anymore :-) I created the SwitchWindow function which uses the ALT left/right/up/down cursor keys to easily move between windows. Set winheight=999 "Maximize active window Set winminheight=0 "Set the height of inactive window Set winheight=1 "Make room for minheight change In this case it helps to set the winheight less than the screen height and then set winminheight before setting winheight=999 again. If the order of the settings are reversed vim might fail to set the winminheight saying "E36: Not enough room". I do not have to set mapping and I can use other commands to change buffer, fi C-W C-W, mouse click on status line of the buffer etc. Winheight is always bigger than my window so the current window is maximized. ![]() I have solved the same problem by setting: One may also do the dual thing for vertical splits/window changes: Hope this helps those of you who are working on projects with large numbers of files you're constantly flipping through. This sets the minimum window height to 0, so you can stack many more files before things get crowded. (2) By default, Vim displays the current line of each minimized file, which (to me) isn't much help and takes up too much screen real estate. Now I can hold down Ctrl and move between windows with the standard Vim movement keys. To help avoid this problem, I created this mapping in my. That's four keystrokes (more if you count Ctrl and Shift), and they are all over the keyboard. (1) In order to move to the file in the split above my current window, I was typing Ctrl-W, Up (move up a window) Ctrl-W, _ (maximize the window). My problems were that (1) it took too long to move between files, and (2) the files were taking up too much room on the screen. If you don't already know, Vim supports this very well! Just use: Most programming projects (and Web programming projects, in particular) are spread out over multiple files, which you often want to have open concurrently. I am a Web developer and I use Vim as my primary editor. If you're not sure where to begin in selecting a theme, here are a handful of my favorite Vim themes from Vimcolors.Alt+leftarrow will go one window left, etc. For this reason, more colorful options may seem more welcoming and help new users feel more comfortable. For beginner command-line users, the default black color scheme may feel intimidating, largely due to all the movies about hackers that have sullied the basic black command line's reputation. Which theme you use is all a matter of personal preference! I like the Desert theme because it is bright, which I like however, some people prefer darker or even colorful themes. To ensure Vim always uses your chosen them when you launch the application, enter the following (you may need to be in sudo/root mode): echo 'colorscheme ' > ~ /.vimrc How to choose a theme Now, if you open Vim and use the colorscheme command along with the name of your chosen new theme (e.g., if you want cooltheme.vim, use :colorscheme cooltheme), it should be ready to use! Vimcolors contains a wide variety of color schemes-to access one, just click on the GitHub logo at the bottom-right of the thumbnail image and the theme's GitHub repo will open.Ĭlone the repo to your Vim folder with: git clone ~ /.vim Some of these themes change not only the color of your code or syntax but also the background color. Welcome to the world of open source! You can find tons of great Vim themes on GitHub, and you can access many of them through.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |