Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-19-2017, 04:37 PM   #1
LQ Newbie
Registered: Jan 2017
Posts: 14

Rep: Reputation: Disabled
vim select pane on startup

I have vim setup with the Nerdtree plugin, which is awesome. My only gripe is that when vim starts up nerdtree has focus by default. I would like to try and set the document as the default focused window.

I've tried a couple of things to try and tab over to the main window by default, such as `autocmd ^wk` however I think that Im not using it in the correct manner.

Does anyone know how to accomplish this?
Old 01-19-2017, 07:45 PM   #2
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
This worked for me:

$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Dec 15 2016 03:33:53)
2 members found this post helpful.
Old 01-19-2017, 08:44 PM   #3
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Rep: Reputation: 30
Nice work, cheers for that


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vim scrolling down when opening new pane in tmux akseli0x61 Linux - Software 3 04-19-2015 09:18 PM
vim NERDTree | Auto fresh the directory pane? the_gripmaster Linux - Software 0 09-15-2014 01:44 PM
How to disable Content Pane at startup in Okular? cstrieder Linux - Software 3 08-19-2010 08:49 PM
vim in slackware 12, why can 't you select and click sysslack_linux Slackware 2 11-07-2007 11:00 PM
Vim - select mode for mouse robertmarkbram Linux - Software 2 12-02-2003 09:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration